{% extends "base.html" %}


{% block content %}

<form method="POST" action="/exams/GetExamById/{{exam.id}}/">
    {% csrf_token %}


    <p>{{exam.name}}</p>
       <!-- þetta er form líka -->
    {% for Question in questions %}
        <p>{{Question.question}}</p>
        {% for answer in Question.answers %}
       <p>  {{answer.answer}}</p> <input type="radio" name="Question_{{answer.idOfQuestion}}" value="{{answer.answer}}"/>
        {% endfor %}

    {% endfor %}
    <input type="submit" value="submit"/>
</form>
 {% endblock content %}